#ifndef PLAYSCENE_H
#define PLAYSCENE_H

#include <QMainWindow>
#include <QPaintEvent>
#include "mycoin.h"
#include <QSound>

/**
  翻金币场景
 * @brief The PlayScene class
 */
class PlayScene : public QMainWindow
{
    Q_OBJECT
public:
    explicit PlayScene(QWidget *parent = nullptr);
       PlayScene(int index);
private:
    int levelIndex;//记录关卡索引
    int gameArray[4][4];//关卡二维数组数据
    MyCoin * coinBtn[4][4]; //金币按钮数组
    bool isWin = false;
protected:
    void paintEvent(QPaintEvent *event);
    //翻金币音效
    QSound *flipSound = new QSound(":/res/ConFlipSound.wav",this);
    //胜利按钮音效
    QSound *winSound = new QSound(":/res/LevelWinSound.wav",this);

signals:
    void chooseSenceBack();
};

#endif // PLAYSCENE_H
